<?php
/**
 * Model tokenu uzivatelskej relacie
 * @author Tomas Srna
 * @package bakalarka
 */

class TokenModel extends Model
{
	protected function __construct()
	{
		$this->_table = 'token';
		$this->_fields = array(
			new Field('uuid', 'varchar(36)', true),
			new Field('username', 'varchar(100)'),
			new Field('ip', 'varchar(50)'),
			new Field('persistent', 'tinyint(4)'),
			new Field('valid_until', 'int')
		);
	}
}
